package com.cnpc.ds.utils;

import com.cnpc.eisc.base.pojo.Org;
import com.cnpc.eisc.base.pojo.User;

public class CheckUserUtil {
    public static User checkUser(User user){
        if(user==null){
            user = new User();
            user.setUserName("system");
            user.setUserId("b25265ad3b8a48f8b3bab3811ea19250");
            Org org=new Org();
            org.setOrgId("C0000000002073");
            org.setOrgCode("C151");
            user.setOrg(org);
            return user;
//            throw new IllegalArgumentException("ERROR-TOKEN-INVALID");
        }
        return user;
    }
}
